<%--
 *  File:    ZylHisMasterdataRelationship.jsp
 *  @Author: yuelongma
 *  Date:    2012/11/26
 *
 *  Copyright (C) 2000 - 2002 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>


<% //--------------------------------------  setting logger --%>


<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "DMS";
 	String strTableName = "v_relationship";
    String contextPath = request.getContextPath(); 
%>

<% //--------------------------------------  include files list --%>

<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<html>
<head>
<title>MasterdataRelationship</title>
<PageFlow:CheckPageFlow pageName="p_zylhis_masterdatarelationship"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>

<%@ include file="/inc/SummaryDivision.inc" %>

<% //--------------------------------------  output variant from pageflow --%>
<%
  	Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
	HashMap userinfo = (HashMap)session.getAttribute("userinfo");
	String gpcstr = (Integer)pageContext.getAttribute("globalpccode")+"";
  	if(totalsummary == null)
  	{
  		totalsummary = new Vector();
  	}
%>

</head>

<body>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
<form id="pageform" name="cform" method="post" action="<%=contextPath %>/Dispatcher"  target="_self">
	<input type="hidden" name="actionname">
	<input type="hidden" name="flags" value="0">
	<custom:hidden property="globalpccode" value="<%=gpcstr %>"/>
	<custom:hidden property="orgid"/>
	    <tr> 
		    <td> 
		      <table border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0">
		        <tr class="deepblue-left">
				  <td width="1%" class="title_center">&nbsp;</td>
		          <td class="title_center"><%= label.getLabelName("L_Partner") %></td>
		          <td class="title_center"><%= label.getLabelName("L_ProductGroup") %></td>
		          <td class="title_center"><%= label.getLabelName("L_BusinessAreaName") %></td>
		          <td class="title_center"><%= label.getLabelName("L_Employee") %></td>
		          <td class="title_center"><%= label.getLabelName("L_employeenameUp") %></td>
                  <%if("114".equals(gpcstr)){%>
 		          <td class="title_center"><%= label.getLabelName("L_YorN") + label.getLabelName("L_Target") %></td>
				  <%}%>
		          <td class="title_center"><%= label.getLabelName("L_Contact") %></td>
		        </tr>
		        <%
	            	int i = 0;
	             	String strClassType = new String();
	          	%>
		         <logic:iterate id="onerow" collection="<%= totalsummary %>" indexId="idx">
		           	<%
		            	HashMap tempMap = (HashMap)pageContext.getAttribute("onerow");
		            	if(i%2 == 1)
		            	{
		              		strClassType = "td-listrom";
		            	}else{
		              		strClassType = "";
		            	}
		            	i++;
		            	
		          	%>
		          	<tr id="tr<%=idx %>" class="none">
		          		<td id="td" class="title_left" >&nbsp;</td>
		            	<td class="title_left">
							<custom:write name="onerow" property="orgcode" nbsp="true"/>
							&nbsp;
		            		<custom:write name="onerow" property="orgname" nbsp="true"/>
		            	</td>
		            	<td class="title_left">
						  <custom:write name="onerow" property="productgroupname"/>
		            	</td>		            	
						<td class="title_left">
						  <custom:write name="onerow" property="areaname"/>
						</td> 
						<td class="title_left">
                          <custom:write name="onerow" property="username" nbsp="true"/>
						  <custom:write name="onerow" property="employeename"/>
						</td>
						<td class="title_left">
                            <custom:write name="onerow" property="parentemployeecode" nbsp="true"/>
						</td>
                        <%if("114".equals(gpcstr)){%>
						<td class="title_left">
						    <custom:write name="onerow" property="istarget" dictType="YesOrNo" nbsp="true"/>
		     		    </td>
					    <%}%>
		     		    <td>&nbsp;<custom:write name="onerow" property="doctorname" /></td>
		     		 </tr>
		     	 </logic:iterate>
		      </table>
		    </td>
	  </tr>
</form>
</table>
</body>
</html>
